package list;

import com.alibaba.fastjson.JSON;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author jukg
 * @date 2023/04/23 17:13
 * @description
 */
public class ListTest {


    public static void main1(String[] args) {
        List<User> list = Arrays.asList(new User("1","a"), new User("2","b"),new User("1","c"));

        List<User> result = list.stream().filter(item ->item.getName().equals("b") && aa(item.getName()).equals("1")).collect(Collectors.toList());

        System.out.println(result);

    }

    public static void main(String[] args) {
        System.out.println(("4,11,011,200,320,200;/\n4,1,001,1000000,1,1000000n2,2,002,100000,10,100000n3,3,003,10000,100,10000n3,4,004,10000,50,1000×10n3,5,005,10000,30,300×25+100×25(超给力中所有奖金之和)n3,6,006,10000,20,300×30+50×20n4,7,007,1000,500,1000n4,8,008,1000,300,500×2n4,9,009,1000,200,100×10n5,10,010,500,500,500n5,11,011,500,500," +
                "300+100×2n5,12,012,500,500,100×5n5,13,013,500,200,80+70+60×5+50n5,14,014,500,300,50×10n6,15,015,300,2000,300n6" +
                ",16,016,300,1000,100×3n6,17,017,300,1000,100+80+70+50n6,18,018,300,1000,50×6n7,19,019,100,50" +
                "00,100n7,20,020,100,5000,50×2n8,21,021,80,40000,80n8,22,022,80,2500,80n9,23,023,70,90000,70" +
                "n10,24,024,60,100000,60n11,25,025,50,165000,50n11,26,026,50,1000,50").replaceAll("/\n", ""));

    }

    public static String aa(String aa){
        return  aa;
    }
}
class User {
    private String name;

    private String phone;

    public User(String name, String phone) {
        this.name = name;
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
